package hutool;

import cn.hutool.core.lang.Opt;

/**
 * @author 王霄
 * @date 2022/10/20 15:37
 */
public class OptDemo {
    public static void main(String[] args) {
        String str1 = Opt.ofBlankAble("").orElse(null);
        System.out.println("str1: " + str1);

        String str2 = Opt.ofNullable("").orElse(null);
        System.out.println("str2: " + str2);

        boolean isEmpty = Opt.empty().isEmpty();
        System.out.println("isEmpty: " + isEmpty);

    }
}
